package com.wmb.config;

import org.springframework.boot.CommandLineRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/*在项目启动的时候需要做一些初始化的操作，比如初始化线程池，提前加载好加密证书等*/
@Component
@Order(1) //指定初始化的顺序
public class OrderRunner1 implements CommandLineRunner {
    @Override
    public void run(String... args) throws Exception {
        System.out.println("初始化1");
    }
}

